﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="Web.Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head runat="server">
<meta http-equiv="charset" content="utf-8" />
    <link href="ligerUI/skins/Aqua/css/ligerui-all.css?ssss=ss1" rel="stylesheet" type="text/css" />
     <script src="Javascript/jquery-1.5.2.min.js" type="text/javascript"></script>
    <script src="Javascript/RiaFrame_Layout_GeoEast.js" type="text/javascript"></script>
    <script src="ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
    <script src="ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
    <script src="ligerUI/js/plugins/ligerAccordion.js" type="text/javascript"></script>
    <script src="ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>

        
            <script type="text/javascript">
                var tab = null;
                var accordion = null;
                $(function() {
                    //                //初始化顶部菜单
                    //                LoadLavaLamp();
                    LoadAnimateMenu();

                    //初始化左侧导航菜单
                    var pidValue = $("#menuParentId").val();
                    var Isremove = $("#IsRemoveTab").val() == "1" ? true : false;
                    GetNavigateContent(pidValue, Isremove);

                    //初始化快捷菜单
                    var userid = $("#h_UserId").val();

                    $("#pageloading").height($(window).height());

                    //布局
                    $("#layout1").ligerLayout({ leftWidth: 175, topHeight: 0, height: '100%', onHeightChanged: f_heightChanged,allowLeftResize:false,allowLeftCollapse:true });

                    var height = $(".l-layout-center").height();

                    //Tab
                    tab = $("#framecenter").ligerTab({ height: height });

                    //面板
                    accordion = $("#accordion1").ligerAccordion({ height: height - 24, speed: 'normal' });

                    $(".l-link").hover(function() {
                        $(this).addClass("l-link-over");
                    }, function() {
                        $(this).removeClass("l-link-over");
                    });

                    //预加载隐藏
                    $("#pageloading").hide();
                });

                function f_heightChanged(options) {
                    if (tab)
                        tab.addHeight(options.diff);
                    if (accordion && options.middleHeight - 24 > 0)
                        accordion.setHeight(options.middleHeight - 24);
                }
                function f_addTab(tabid, text, url, isclose) {
                    var _isclose = null;
                    if (isclose == null || typeof (isclose) != "boolean") {
                        _isclose = true;
                    }
                    else {
                        _isclose = isclose;
                    }
                    tab.addTabItem({ tabid: tabid, text: text, url: url,showClose:_isclose });
                }

                //注销事件
                function AlertLogout(msg) {
                    if (window.confirm(msg)) {
                        location.href = "Views/SystemLogin/Logout.aspx";
                    }
                }
                //返回首页
                function GoIndexPage() {
                    location.href = "portal.aspx";
                }
                //全文检索
                function fulltext_search() {
                    var text = $("#fulltext").val();
                    text = encodeURIComponent(text);
                    window.open("Views/FullTextRetrieval/QueryResultsSearch.aspx?searchText=" + text);
                }

                //设置页面的布局
                function setLayout() {
                    var pageLength = $('#layout1').outerWidth();
                    if (pageLength <= 1010) {
                        $('#layout1').width(1010);
                        return;
                    }
                    var cWidth = $(window).width();
                    if (cWidth > 1010 && cWidth < 1300) {
                        $('#layout1').width(cWidth);
                    }
                    var left = (cWidth - pageLength) / 2 > 0 ? (cWidth - pageLength) / 2 : 0;
                    $('#layout1').css('left', left + 'px');
                }

                function enterKey(e) {
                    var code;
                    if (!e) {
                        var e = window.event;
                    }
                    if (e.keyCode) {
                        code = e.keyCode;
                    }
                    else if (e.which) {
                        code = e.which;
                    }
                    if (code == 13) {
                        fulltext_search();
                        ///这里是调用执行的方法
                        /// return false;
                    }
                }
     </script> 
<style type="text/css"> 
    html{ overflow:hidden; height:100%;}
    body{ padding:0px; margin:0;overflow:hidden; background:white;}  
    .l-link{ display:block; height:26px; line-height:26px; padding-left:10px; text-decoration:underline; color:#333;}
    .l-link2{text-decoration:underline; color:white;}
    .l-layout-top{background:#102A49; color:White;}
    .l-layout-bottom{ background:#E5EDEF; text-align:center;}
    .l-layout-content{ background:url(ligerUI/skins/Aqua/images/layout/leftnav_bg.png) repeat;}
    #pageloading{position:absolute; left:0px; top:0px; background:white url('Images/Portal/loading.gif') no-repeat center; width:100%; height:100%; height:700px; z-index:99999;}
    .l-link{ display:block; line-height:22px; height:22px; padding-left:20px;border:1px solid white; margin:4px;}
    .l-link-over{ background:#FFEEAC; border:1px solid #DB9F00;}
    
    /*重写修改Tree的宽度的样式*/
    .treemenu ul{ width:100% !important; background:url(ligerUI/skins/Aqua/images/layout/leftnav_bg.png) repeat; color:White;}
    .l-tree LI .l-body{ overflow:hidden;}
    .l-tree li .l-over{	background:url(App_Themes/NewPage/images/leftbar_hover.png) repeat;
	color:#326ac6;/*---当前标签，在鼠标滑过时---*/}
    .l-tree li .l-selected{background:url(App_Themes/NewPage/images/leftbar_hover.png) repeat; background-color:White; color:#326ac6;}
    .l-layout-header-inner{ color:White;}
    .l-accordion-panel
    {
        overflow:auto;
    }
 </style>
 <title>中油瑞飞信息技术有限责任公司协同办公平台</title>
</head>
<body  style=" height:100%;">
    <noscript>
        <div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px;
            width: 100%; background: white; text-align: center;">
            
            请开启脚本支持！
        </div>
    </noscript>
    <form runat="server" id="form1">
  <div id="pageloading"></div>
  <div id="layout1" style="width:100%;" >
       
        <div position="left"   id="accordion1" title="菜单列表">
                    <span id="left_menu" class="treemenu"></span>
                          
        </div>
        <div position="center" id="framecenter"> 
                    <div tabid="default" title="<%=TabTitle %>" showClose="true" style="height:300px" >
                <iframe frameborder="0" name="home" src="<%= StringUrl %>"></iframe>
            </div>
        </div> 
    </div> 
        <div style="display:none">  </div>
                <asp:HiddenField ID="menuParentId" runat="server" Value="" />
        <asp:HiddenField ID="IsRemoveTab" runat="server" Value="" />
        <asp:HiddenField ID="h_UserId" runat="server" Value="" />
        </form>
        	
</body>
</html>
